package com.framework.main.sys.bdtype.action;

import com.framework.main.sys.bdtype.service.SysBdTypeService;
import com.framework.base.struts.BaseAction;
import com.framework.base.struts.Result;
import com.framework.base.util.Struts2Utils;

/**
 * Title:首页 >> 系统管理 >> 基础数据管理 (Action) Description:用于管理基础数据数据请求
 * tabaleName(对应的表名):SYS_BDTYPE Copyright: Copyright (c) 2011 Company: framework
 * 
 * @author：邹乐乐
 * @version 1.0
 * @Date Jun 7, 2011 4:23:59 PM
 */
@SuppressWarnings("serial")
public class SysBdTypeAction extends BaseAction {
	private SysBdTypeService bdTypeService;

	public SysBdTypeService getBdTypeService() {
		return bdTypeService;
	}

	public void setBdTypeService(SysBdTypeService bdTypeService) {
		this.bdTypeService = bdTypeService;
	}
	
	@Override
	public String toList() throws Exception {
		Result result=this.getBdTypeService().toList(Struts2Utils.getParameterMap(getQueryMap(),this.getVo()));
		Struts2Utils.getRequest().setAttribute("pagination", result.getPage());
		return result.getForwardName();
	}
}
